package io.mya.app.user.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import io.mya.app.user.entity.UserQuotationEntity;
import io.mya.modules.customer.entity.CustomerEntity;
/**
 * 用户注册通用DAO 包括增删改查 使用到用户数据的全在此service调用方法
 * @author shican
 * @date 2018年3月29日
 * 1208296327@qq.com
 */
@Mapper
public interface AppUserDao {

	CustomerEntity queryUserByEmail(String registerMail);

	void save(CustomerEntity entity);

	Long queryUserByCode(String invitecode);

	CustomerEntity queryUserById(Long id);

	void update(CustomerEntity customerEntity);

	void addCandyCount(Map<String, Object> map);

	CustomerEntity queryUserByEmailToLogin(String email);

	List<UserQuotationEntity> selectQuotation(Long id);

	void addseting(UserQuotationEntity quotationEntity);

	void delesetting(UserQuotationEntity quotationEntity);

	List<UserQuotationEntity> queryselect(Long id);

	void sortsetting(List<UserQuotationEntity> list);

}
